Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Inconsistent null AppType grouping can cause duplicate Client full-package downloads and replacements, while a stale push report type can misclassify subsequent polling reports and IPC.
2 open issues
What changed in this PR
Connects SignalR push packets to the existing download and update-reporting workflow, including report routing to the separate updater process.
Changes:
- Adds a per-message push download source and payload fields, using source-generated JSON parsing.
- Routes push reports as Type 2 and suppresses record reports for legacy packets without an ID.
- Supports full-only download plans, adds targeted tests, and documents host integration requirements.
| File | Description |
|---|---|
| tests/CoreTest/Strategy/ReportRoutingTests.cs | Tests push report routing, missing IDs, and in-process tenant headers. |
| tests/CoreTest/Download/PushDownloadSourceTests.cs | Tests packet validation, mapping, cancellation, and full-only plans. |
| src/GeneralUpdate.Core/Strategy/UpdateStrategy.cs | Suppresses final push reports without a record ID. |
| src/GeneralUpdate.Core/Strategy/ClientStrategy.cs | Selects push report type and guards reports without IDs. |
| src/GeneralUpdate.Core/Strategy/AbstractStrategy.cs | Skips per-record push reports with invalid IDs. |
| src/GeneralUpdate.Core/Download/Sources/PushDownloadSource.cs | Parses and validates a push packet into a download source. |
| src/GeneralUpdate.Core/Download/DownloadPlanBuilder.cs | Selects the latest full package per application type for full-only plans. |
| src/GeneralUpdate.Core/Configuration/PushPayload.cs | Adds record ID, size, package type, and format fields. |
| src/GeneralUpdate.Core/Configuration/AbstractBootstrap.cs | Allows registration of a preconstructed download source. |
| docs/core-execution-flow.md | Documents push integration, validation, tenant headers, and scheduling responsibilities. |
Review effort: Balanced
| if (chainCandidates.Count == 0 && fullCandidates.Count > 0) | ||
| { | ||
| var latestFulls = fullCandidates | ||
| .GroupBy(a => a.AppType) |
Comment on lines
+438
to
+439
| _reportType = 2; | ||
| _configInfo.ReportType = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Validation